package com.cloud.magic_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 角色权限
 *
 * @author yzj
 * @since 2022-08-29
 */
@Data
@Schema(name = "SysRoleAuth对象", description = "Magic-Api")
@TableName("sys_role_auth")
public class SysRoleAuth extends BaseEntity {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "权限名称")
    private String permission;

}
